Problem B Rock And Lever | Codeforces Round 672 | Div2 | Editorial